.class public Lcom/melesta/payment/inapp3/InAppSystem;
.super Ljava/lang/Object;
.source "InAppSystem.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/ISystem;
.implements Lcom/melesta/engine/EngineActivity$ActivityTickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;,
        Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;
    }
.end annotation


# static fields
.field static final RC_REQUEST:I = 0x2711

.field static final SYSTEM_NAME:Ljava/lang/String; = "inapp"

.field private static final TAG:Ljava/lang/String; = "payment-inapp"


# instance fields
.field private base64EncodedPublicKey:Ljava/lang/String;

.field private defaultListener:Lcom/melesta/payment/interfaces/IListener;

.field private final mConsumeRequests:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;",
            ">;"
        }
    .end annotation
.end field

.field private mContext:Landroid/content/Context;

.field mGotInventoryListener:Lcom/melesta/payment/inapp3/IabHelper$QueryInventoryFinishedListener;

.field private mHandler:Landroid/os/Handler;

.field mHelper:Lcom/melesta/payment/inapp3/IabHelper;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 45
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 81
    new-instance v0, Lcom/melesta/payment/inapp3/InAppSystem$1;

    invoke-direct {v0, p0}, Lcom/melesta/payment/inapp3/InAppSystem$1;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;)V

    iput-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mGotInventoryListener:Lcom/melesta/payment/inapp3/IabHelper$QueryInventoryFinishedListener;

    .line 311
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mConsumeRequests:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic access$000(Lcom/melesta/payment/inapp3/InAppSystem;)Lcom/melesta/payment/interfaces/IListener;
    .locals 1
    .parameter "x0"

    .prologue
    .line 45
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->defaultListener:Lcom/melesta/payment/interfaces/IListener;

    return-object v0
.end method

.method static synthetic access$100(Lcom/melesta/payment/inapp3/InAppSystem;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 45
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$200(Lcom/melesta/payment/inapp3/InAppSystem;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 45
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mConsumeRequests:Ljava/util/ArrayList;

    return-object v0
.end method


# virtual methods
.method public buy(Lcom/melesta/payment/inapp3/InAppRequest;)V
    .locals 15
    .parameter "request"

    .prologue
    .line 231
    invoke-virtual/range {p1 .. p1}, Lcom/melesta/payment/inapp3/InAppRequest;->getName()Ljava/lang/String;

    move-result-object v3

    .line 232
    .local v3, mItemName:Ljava/lang/String;
    invoke-virtual/range {p1 .. p1}, Lcom/melesta/payment/inapp3/InAppRequest;->getSku()Ljava/lang/String;

    move-result-object v4

    .line 233
    .local v4, mSku:Ljava/lang/String;
    invoke-virtual/range {p1 .. p1}, Lcom/melesta/payment/inapp3/InAppRequest;->getCountPerItem()I

    move-result v5

    .line 235
    .local v5, mCountPerItem:I
    const-string v1, "payment-inapp"

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "buying: "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " sku: "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v1, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 238
    new-instance v6, Lcom/melesta/payment/PaymentTransaction;

    invoke-direct {v6}, Lcom/melesta/payment/PaymentTransaction;-><init>()V

    .line 239
    .local v6, tr:Lcom/melesta/payment/PaymentTransaction;
    invoke-virtual/range {p1 .. p1}, Lcom/melesta/payment/inapp3/InAppRequest;->getName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v6, Lcom/melesta/payment/PaymentTransaction;->paymentId:Ljava/lang/String;

    .line 240
    invoke-virtual {p0}, Lcom/melesta/payment/inapp3/InAppSystem;->getName()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v6, Lcom/melesta/payment/PaymentTransaction;->paymentSystem:Ljava/lang/String;

    .line 241
    invoke-virtual/range {p1 .. p1}, Lcom/melesta/payment/inapp3/InAppRequest;->getCountPerItem()I

    move-result v1

    iput v1, v6, Lcom/melesta/payment/PaymentTransaction;->quantity:I

    .line 243
    invoke-static {}, Lcom/melesta/engine/EngineActivity;->getInstance()Lcom/melesta/engine/EngineActivity;

    move-result-object v1

    invoke-static {v1}, Lcom/melesta/engine/DatabaseHelper;->getHelper(Landroid/content/Context;)Lcom/melesta/engine/DatabaseHelper;

    move-result-object v2

    .line 245
    .local v2, databaseHelper:Lcom/melesta/engine/DatabaseHelper;
    const-wide/16 v7, -0x1

    invoke-virtual {v2, v7, v8, v6}, Lcom/melesta/engine/DatabaseHelper;->saveTransaction(JLcom/melesta/payment/PaymentTransaction;)J

    move-result-wide v13

    .line 247
    .local v13, id:J
    new-instance v0, Lcom/melesta/payment/inapp3/InAppSystem$3;

    move-object v1, p0

    invoke-direct/range {v0 .. v6}, Lcom/melesta/payment/inapp3/InAppSystem$3;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/engine/DatabaseHelper;Ljava/lang/String;Ljava/lang/String;ILcom/melesta/payment/PaymentTransaction;)V

    .line 298
    .local v0, purchaseFinishedListener:Lcom/melesta/payment/inapp3/IabHelper$OnIabPurchaseFinishedListener;
    iget-object v7, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    iget-object v8, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mContext:Landroid/content/Context;

    check-cast v8, Landroid/app/Activity;

    const/16 v10, 0x2711

    invoke-virtual/range {p1 .. p1}, Lcom/melesta/payment/inapp3/InAppRequest;->getName()Ljava/lang/String;

    move-result-object v12

    move-object v9, v4

    move-object v11, v0

    invoke-virtual/range {v7 .. v12}, Lcom/melesta/payment/inapp3/IabHelper;->launchPurchaseFlow(Landroid/app/Activity;Ljava/lang/String;ILcom/melesta/payment/inapp3/IabHelper$OnIabPurchaseFinishedListener;Ljava/lang/String;)V

    .line 299
    return-void
.end method

.method consume(Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;)V
    .locals 2
    .parameter "data"

    .prologue
    .line 386
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/melesta/payment/inapp3/InAppSystem$4;

    invoke-direct {v1, p0, p1}, Lcom/melesta/payment/inapp3/InAppSystem$4;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 397
    return-void
.end method

.method consume(Lcom/melesta/payment/inapp3/Purchase;Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;)V
    .locals 1
    .parameter "purchase"
    .parameter "consumeFinishedListener"

    .prologue
    .line 381
    new-instance v0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;

    invoke-direct {v0, p0, p1, p2}, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/payment/inapp3/Purchase;Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;)V

    .line 382
    .local v0, data:Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;
    invoke-virtual {p0, v0}, Lcom/melesta/payment/inapp3/InAppSystem;->consume(Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;)V

    .line 383
    return-void
.end method

.method public get(Ljava/lang/String;)Ljava/lang/Object;
    .locals 1
    .parameter "property"

    .prologue
    .line 346
    const/4 v0, 0x0

    return-object v0
.end method

.method public getDefaultListener()Lcom/melesta/payment/interfaces/IListener;
    .locals 1

    .prologue
    .line 350
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->defaultListener:Lcom/melesta/payment/interfaces/IListener;

    return-object v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 320
    const-string v0, "inapp"

    return-object v0
.end method

.method public getRequestBuilder()Lcom/melesta/payment/interfaces/IRequestBuilder;
    .locals 1

    .prologue
    .line 315
    new-instance v0, Lcom/melesta/payment/inapp3/InAppRequestBuilder;

    invoke-direct {v0, p0}, Lcom/melesta/payment/inapp3/InAppRequestBuilder;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;)V

    return-object v0
.end method

.method public onActivityResult(Landroid/content/Context;IILandroid/content/Intent;)Z
    .locals 1
    .parameter "context"
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    .line 333
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    invoke-virtual {v0, p2, p3, p4}, Lcom/melesta/payment/inapp3/IabHelper;->handleActivityResult(IILandroid/content/Intent;)Z

    move-result v0

    return v0
.end method

.method public onBeginTick()V
    .locals 5

    .prologue
    .line 402
    :try_start_0
    iget-object v3, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    if-nez v3, :cond_1

    .line 430
    :cond_0
    :goto_0
    return-void

    .line 404
    :cond_1
    iget-object v3, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    iget-boolean v3, v3, Lcom/melesta/payment/inapp3/IabHelper;->mAsyncInProgress:Z

    if-nez v3, :cond_0

    .line 407
    invoke-static {}, Lcom/melesta/engine/EngineActivity;->getInstance()Lcom/melesta/engine/EngineActivity;

    move-result-object v2

    .line 409
    .local v2, instance:Lcom/melesta/engine/EngineActivity;
    iget-object v3, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mConsumeRequests:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 410
    invoke-virtual {v2}, Lcom/melesta/engine/EngineActivity;->getHandler()Landroid/os/Handler;

    move-result-object v3

    new-instance v4, Lcom/melesta/payment/inapp3/InAppSystem$5;

    invoke-direct {v4, p0, v2}, Lcom/melesta/payment/inapp3/InAppSystem$5;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/engine/EngineActivity;)V

    invoke-virtual {v3, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 427
    .end local v2           #instance:Lcom/melesta/engine/EngineActivity;
    :catch_0
    move-exception v1

    .line 428
    .local v1, e:Ljava/lang/Exception;
    invoke-static {v1}, Lcom/melesta/engine/Error;->processException(Ljava/lang/Exception;)V

    goto :goto_0

    .line 420
    .end local v1           #e:Ljava/lang/Exception;
    .restart local v2       #instance:Lcom/melesta/engine/EngineActivity;
    :cond_2
    :try_start_1
    iget-object v3, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mConsumeRequests:Ljava/util/ArrayList;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;

    .line 421
    .local v0, data:Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;
    invoke-virtual {v2}, Lcom/melesta/engine/EngineActivity;->getHandler()Landroid/os/Handler;

    move-result-object v3

    new-instance v4, Lcom/melesta/payment/inapp3/InAppSystem$6;

    invoke-direct {v4, p0, v0}, Lcom/melesta/payment/inapp3/InAppSystem$6;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;)V

    invoke-virtual {v3, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public onCreate(Landroid/content/Context;Landroid/os/Handler;)V
    .locals 2
    .parameter "context"
    .parameter "handler"

    .prologue
    .line 163
    iput-object p2, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHandler:Landroid/os/Handler;

    .line 164
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mContext:Landroid/content/Context;

    .line 168
    const-string v0, "payment-inapp"

    const-string v1, "Creating IAB helper."

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 169
    new-instance v0, Lcom/melesta/payment/inapp3/IabHelper;

    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppSystem;->base64EncodedPublicKey:Ljava/lang/String;

    invoke-direct {v0, p1, v1}, Lcom/melesta/payment/inapp3/IabHelper;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    .line 173
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/melesta/payment/inapp3/IabHelper;->enableDebugLogging(Z)V

    .line 177
    const-string v0, "payment-inapp"

    const-string v1, "Starting setup."

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 178
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mHelper:Lcom/melesta/payment/inapp3/IabHelper;

    new-instance v1, Lcom/melesta/payment/inapp3/InAppSystem$2;

    invoke-direct {v1, p0}, Lcom/melesta/payment/inapp3/InAppSystem$2;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;)V

    invoke-virtual {v0, v1}, Lcom/melesta/payment/inapp3/IabHelper;->startSetup(Lcom/melesta/payment/inapp3/IabHelper$OnIabSetupFinishedListener;)V

    .line 205
    return-void
.end method

.method public onDestroy(Landroid/content/Context;Landroid/os/Handler;)V
    .locals 0
    .parameter "context"
    .parameter "handler"

    .prologue
    .line 223
    return-void
.end method

.method public onEndTick()V
    .locals 0

    .prologue
    .line 434
    return-void
.end method

.method public onPause(Landroid/content/Context;Landroid/os/Handler;)V
    .locals 0
    .parameter "context"
    .parameter "handler"

    .prologue
    .line 325
    return-void
.end method

.method public onResume(Landroid/content/Context;Landroid/os/Handler;)V
    .locals 0
    .parameter "context"
    .parameter "handler"

    .prologue
    .line 329
    return-void
.end method

.method public onStart(Landroid/content/Context;Landroid/os/Handler;)V
    .locals 0
    .parameter "context"
    .parameter "handler"

    .prologue
    .line 212
    return-void
.end method

.method public onStop(Landroid/content/Context;Landroid/os/Handler;)V
    .locals 0
    .parameter "context"
    .parameter "handler"

    .prologue
    .line 219
    return-void
.end method

.method public purchaseProcessed(Lcom/melesta/payment/PaymentTransaction;)V
    .locals 9
    .parameter "pt"

    .prologue
    .line 361
    if-eqz p1, :cond_0

    :try_start_0
    iget-object v6, p1, Lcom/melesta/payment/PaymentTransaction;->paymentSystem:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/melesta/payment/inapp3/InAppSystem;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_1

    .line 378
    :cond_0
    :goto_0
    return-void

    .line 364
    :cond_1
    iget-object v6, p0, Lcom/melesta/payment/inapp3/InAppSystem;->mContext:Landroid/content/Context;

    invoke-static {v6}, Lcom/melesta/engine/DatabaseHelper;->getHelper(Landroid/content/Context;)Lcom/melesta/engine/DatabaseHelper;

    move-result-object v1

    .line 366
    .local v1, databaseHelper:Lcom/melesta/engine/DatabaseHelper;
    new-instance v3, Lcom/melesta/payment/inapp3/Purchase;

    const-string v6, "inapp"

    iget-object v7, p1, Lcom/melesta/payment/PaymentTransaction;->customData:Ljava/lang/String;

    const-string v8, ""

    invoke-direct {v3, v6, v7, v8}, Lcom/melesta/payment/inapp3/Purchase;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 367
    .local v3, purchase:Lcom/melesta/payment/inapp3/Purchase;
    new-instance v0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;

    invoke-direct {v0, p0, p1, v1}, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/payment/PaymentTransaction;Lcom/melesta/engine/DatabaseHelper;)V

    .line 368
    .local v0, consumeFinishedListener:Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;
    new-instance v4, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;

    invoke-direct {v4, p0, v3, v0}, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;-><init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/payment/inapp3/Purchase;Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;)V

    .line 369
    .local v4, request:Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;
    invoke-virtual {p0, v4}, Lcom/melesta/payment/inapp3/InAppSystem;->consume(Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 370
    .end local v0           #consumeFinishedListener:Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;
    .end local v1           #databaseHelper:Lcom/melesta/engine/DatabaseHelper;
    .end local v3           #purchase:Lcom/melesta/payment/inapp3/Purchase;
    .end local v4           #request:Lcom/melesta/payment/inapp3/InAppSystem$ConsumeData;
    :catch_0
    move-exception v2

    .line 371
    .local v2, e:Ljava/lang/Exception;
    new-instance v5, Ljava/lang/StringBuilder;

    const/16 v6, 0x80

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(I)V

    .line 373
    .local v5, sb:Ljava/lang/StringBuilder;
    :try_start_1
    invoke-static {p1, v5}, Lcom/melesta/payment/PaymentTransaction;->dump(Lcom/melesta/payment/PaymentTransaction;Ljava/lang/StringBuilder;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 376
    :goto_1
    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6, v2}, Lcom/melesta/engine/Error;->processException(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0

    .line 374
    :catch_1
    move-exception v6

    goto :goto_1
.end method

.method public set(Ljava/lang/String;Ljava/lang/Object;)Lcom/melesta/payment/inapp3/InAppSystem;
    .locals 1
    .parameter "property"
    .parameter "value"

    .prologue
    .line 338
    const-string v0, "openkey"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 339
    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem;->base64EncodedPublicKey:Ljava/lang/String;

    .line 341
    :cond_0
    return-object p0
.end method

.method public bridge synthetic set(Ljava/lang/String;Ljava/lang/Object;)Lcom/melesta/payment/interfaces/ISystem;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 45
    invoke-virtual {p0, p1, p2}, Lcom/melesta/payment/inapp3/InAppSystem;->set(Ljava/lang/String;Ljava/lang/Object;)Lcom/melesta/payment/inapp3/InAppSystem;

    move-result-object v0

    return-object v0
.end method

.method public setDefaultListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/inapp3/InAppSystem;
    .locals 0
    .parameter "defaultListener"

    .prologue
    .line 354
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppSystem;->defaultListener:Lcom/melesta/payment/interfaces/IListener;

    .line 355
    return-object p0
.end method
